home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / pc / BF_SDK11.ZIP / BLOWFISH.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-06-06  |  1.4 KB  |  43 lines

  1.  
  2.  
  3.  
  4. //        BLOWFISH.H
  5. //        interface for BFENG.OBJ
  6. //        programming language: MS Visual C++ 1.0
  7. //        memory model: large
  8. //        last update: 05/25/96
  9. //      (c)1996 Markus Hahn
  10.  
  11.  
  12. #ifndef __BLOWFISH_H
  13. #define __BLOWFISH_H
  14.  
  15.  
  16.  
  17. // the imported functions...
  18.  
  19. // we have to define a lot of extra stuff to be able
  20. // using the assembly functions even in C++ under Windows
  21.  
  22. extern "C" {                                                       
  23.  
  24. void __far __pascal Blowfish_Init(unsigned char pKey[], unsigned int unKeySize);  
  25. void __far __pascal Blowfish_ECBEncrypt(unsigned long *pBuffer, unsigned int unCount);
  26. void __far __pascal Blowfish_ECBDecrypt(unsigned long *pBuffer, unsigned int unCount);
  27. void __far __pascal Blowfish_CBCEncrypt(unsigned long *pBuffer, unsigned int unCount,
  28.                                         unsigned long *ulCBCLeft, unsigned long *ulCBCRight);
  29. void __far __pascal Blowfish_CBCDecrypt(unsigned long *pBuffer, unsigned int unCount,
  30.                                         unsigned long *ulCBCLeft, unsigned long *ulCBCRight);
  31. void __far __pascal Blowfish_Done();
  32. void __far __pascal Blowfish_SetRounds(unsigned int unRounds);
  33. void __far __pascal Blowfish_SetBoxes(unsigned long *pBuffer);
  34. void __far __pascal Blowfish_GetBoxes(unsigned long *pBuffer);
  35. void* __far __pascal Blowfish_GetBoxPointer();
  36. char __far __pascal Blowfish_WeakKey();
  37.  
  38. };
  39.  
  40. #endif
  41.  
  42.  
  43.